﻿#region

using System;

#endregion

namespace SharpObservation
{
    /// <summary>
    ///   Simple contract for notifying listeners of disposal
    /// </summary>
    /// <remarks>
    ///   The only other interface which publishes Disposing events is IComponent. 
    ///   In many cases, a full implementation of IComponent is not desirable, so 
    ///   this interface offers a lightweight alternative.
    /// </remarks>
    public interface IDisposedEvent : IDisposable
    {
        /// <summary>
        /// Occurs when the instance is disposed.
        /// </summary>
        event EventHandler Disposed;
    }
}